package com.cus.tom.transfer.bean;

public enum FileType {
    PIC(0),
    VIDEO(1),
    AUDIO(2),
    APP(3),
    CONTRACT(4),
    SMS(5),
    CALL(6),
    NONE(7);

    int i;

    FileType(int i) {
        this.i = i;
    }

    public final int getCode() {
        return i;
    }

    public static FileType valueOf(int i) {
        FileType[] values = FileType.values();
        for (FileType t : values) {
            if (t.getCode() == i) {
                return t;
            }
        }
        return NONE;
    }
}
